package com.leonzx.base.config.pager;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.context.annotation.Configuration;

/**
 * 分页参数注解
 *
 * Created by liang on 2016/10/8.
 */
@Aspect
@Configuration
public class PagerConfig {
    @Around("execution(* com.leonzx..controller..*Controller.*(..))")
    public Object doBasicProfiling(ProceedingJoinPoint pjp) throws Throwable {
        return new PageInterceptor().doBasicProfiling(pjp);
    }

}